SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
-- =============================================
-- Author:		<Author,,Name>
-- Create date: <Create Date,,>
-- Description:	<Description,,>
-- =============================================
CREATE PROCEDURE [dbo].[listevolprecio_report] 
	-- Add the parameters for the stored procedure here
	@id_lista varchar,
	@codigo varchar,
	@id_entidad varchar,
	@id_usuario varchar,
	@id_categ_entidad varchar,
	@id_categ_art varchar
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;

    -- Insert statements for procedure here
	select s.id_lista, s.codigo, a.id_categ_art,
	s.id_usuario, s.id_categ_entidad, s.id_entidad
	from App_lista s, App_articulo a
	where s.id_lista BETWEEN '000' AND 'zzz' and
		s.codigo BETWEEN '000' AND 'zzz' and
		s.id_entidad BETWEEN '000' AND 'zzz' and
		s.id_usuario BETWEEN '000' AND 'zzz' and
		s.id_categ_entidad BETWEEN '000' AND 'zzz' and
		a.id_categ_art BETWEEN '000' AND 'zzz' 
	ORDER BY s.id_lista
END
GO
